﻿<?php
$this->lang->load('template');
$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0048)http://www.fav365.com/ball/?m=admin&c=good&a=add -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK 
href="/css/admin.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<STYLE type=text/css>
.STYLE1 {
	COLOR: #ff0000
}
</STYLE>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
    <?=form_open('modules/save');?>
    <input type="hidden" value="<?=intval($module['id'])?>" name="id" />
    <input type="hidden" value="<?=site_url('modules/admin')?>" name="redirect" />
    <TABLE cellSpacing=0 cellPadding=0 width="96%" align=center border=0>
      <TBODY>
        <TR>
          <TD><H1 class=title>
              <?php
	  if(!isset($module)):
	  ?>
              <?=$this->lang->line('tpl_act_add')?>
              <?=$this->lang->line('tpl_module')?>
              <?php else:?>
              <?=$this->lang->line('tpl_act_edit')?>
              <?=$this->lang->line('tpl_module')?>
              -
              <?=$module['name']?>
              <?php endif;?>
            </H1></TD>
        </TR>
      </TBODY>
    </TABLE>
    <div>
      <?=$this->validation->error_string; ?>
    </div>
    <TABLE class=table cellSpacing=1 cellPadding=5 width="96%" align=center 
border=0>
      <TBODY>
        <TR>
          <TD class="tdbg bold" width="24%"><DIV align=right>
          <?=$this->lang->line('tpl_module').$this->lang->line('tpl_name')?>
          </DIV></TD>
          <TD><INPUT class=inputstyle name="name" value="<?=$module['name']?>">
            <SPAN class=STYLE1>*</SPAN></TD>
        </TR>
        <TR>
          <TD class="tdbg bold"><DIV align=right>
          <?=$this->lang->line('tpl_module').$this->lang->line('tpl_cates')?>
          </DIV></TD>
          <TD><SELECT class=inputstyle name="parent_id">
              <option value="0">
              <?=$this->lang->line('tpl_plsselect')?>
              </option>
              <?=$options?>
            </SELECT>
            <SPAN 
      class=STYLE1>*</SPAN> </TD>
        </TR>
        <TR>
          <TD class="tdbg bold"><DIV align=right><?=$this->lang->line('tpl_module').$this->lang->line('tpl_link')?></DIV></TD>
          <TD><INPUT class=inputstyle type="text" name="url" value="<?=$module['url']?>">
          </TD>
        </TR>
        <TR>
          <TD class="tdbg bold"><DIV align=right>
              <?=$this->lang->line('tpl_isblank')?>
              </DIV></TD>
          <TD><select name="is_blank">
              <option value="0"<?php if($module['is_blank']==0):?> selected="selected"<?php endif;?>>
              <?=$this->lang->line('tpl_no')?>
              </option>
              <option value="1"<?php if($module['is_blank']==1):?> selected="selected"<?php endif;?>>
              <?=$this->lang->line('tpl_yes')?>
              </option>
            </select>
          </TD>
        </TR>
        <TR>
          <TD class="tdbg bold"><DIV align=right>
              <?=$this->lang->line('tpl_ishow')?>
              </DIV></TD>
          <TD><select name="is_show">
              <option value="1"<?php if($module['is_show']==1):?> selected="selected"<?php endif;?>>
              <?=$this->lang->line('tpl_yes')?>
              </option>
              <option value="0"<?php if(isset($module['is_show'])&&$module['is_show']==0):?> selected="selected"<?php endif;?>>
              <?=$this->lang->line('tpl_no')?>
              </option>
            </select></TD>
        </TR>
        <TR>
          <TD class="tdbg bold"><DIV align=right><?=$this->lang->line('tpl_sort')?></DIV></TD>
          <TD><input type="text" name="sort_order" value="<?=intval($module['sort_order'])?>">
            （0->1->2）</TD>
        </TR>
        <TR>
          <TD colSpan=2><DIV align=center>
              <INPUT class=btn type=submit value="<?=$this->lang->line('tpl_submit');?>" name=Submit>
              <INPUT class=btn onclick=history.back(-1) type=button value="<?=$this->lang->line('tpl_returnback');?>">
            </DIV></TD>
        </TR>
      </TBODY>
    </TABLE>
    </FORM>
  </DIV>
  <DIV class=admin_boxbottom></DIV>
</DIV>
</BODY>
</HTML>
